package com.cazor.dg.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 传感器对象 dg_device_sensor
 *
 * @author cazor
 * @date 2023-11-27
 */
@TableName("dg_device_sensor")
public class DgDeviceSensor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水号 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 传感器id */
    @Excel(name = "传感器id")
    private String sensorId;

    /** 传感器名称 */
    @Excel(name = "传感器名称")
    private String name;

    /** 监测内容id */
    @Excel(name = "监测内容id")
    private String contentId;

    /** 监测站id */
    @Excel(name = "监测站id")
    private String stationId;

    /** 监测站名称 */
    @Excel(name = "监测站名称")
    private String stationName;

    /** 采集频率 */
    @Excel(name = "采集频率")
    private String collectRate;

    /** 通讯方式 */
    @Excel(name = "通讯方式")
    private String contactType;

    /** 监测内容名称 */
    @Excel(name = "监测内容名称")
    private String contentName;

    /** 监测内容类别 */
    @Excel(name = "监测内容类别")
    private String contentType;

    /** SN码 */
    @Excel(name = "SN码")
    private String snCode;

    /** 厂商 */
    @Excel(name = "厂商")
    private String factoryId;

    /** 埋深 */
    @Excel(name = "埋深")
    private String depth;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String installPosition;

    /** 安装日期 */
    @Excel(name = "安装日期")
    private String installDate;

    /** 是否有钻孔 */
    @Excel(name = "是否有钻孔")
    private String drillFlag;

    /** 物联网卡号 */
    @Excel(name = "物联网卡号")
    private String iotNum;

    /** 监测对象 */
    @Excel(name = "监测对象")
    private String monitorObject;

    /** 监测对象类型 */
    @Excel(name = "监测对象类型")
    private String monitorObjectType;

    /** 参数单位 */
    @Excel(name = "参数单位")
    private String paramUnit;

    /** 电池电压 */
    @Excel(name = "电池电压")
    private String batteryVoltage;

    /** 父级设备ID */
    @Excel(name = "父级设备ID")
    private String parentId;

    /** 设备类型:2 传感器 */
    @Excel(name = "设备类型:2 传感器")
    private String type;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private Integer status;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String valid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setSensorId(String sensorId)
    {
        this.sensorId = sensorId;
    }

    public String getSensorId()
    {
        return sensorId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setContentId(String contentId)
    {
        this.contentId = contentId;
    }

    public String getContentId()
    {
        return contentId;
    }
    public void setStationId(String stationId)
    {
        this.stationId = stationId;
    }

    public String getStationId()
    {
        return stationId;
    }
    public void setStationName(String stationName)
    {
        this.stationName = stationName;
    }

    public String getStationName()
    {
        return stationName;
    }
    public void setCollectRate(String collectRate)
    {
        this.collectRate = collectRate;
    }

    public String getCollectRate()
    {
        return collectRate;
    }
    public void setContactType(String contactType)
    {
        this.contactType = contactType;
    }

    public String getContactType()
    {
        return contactType;
    }
    public void setContentName(String contentName)
    {
        this.contentName = contentName;
    }

    public String getContentName()
    {
        return contentName;
    }
    public void setContentType(String contentType)
    {
        this.contentType = contentType;
    }

    public String getContentType()
    {
        return contentType;
    }
    public void setSnCode(String snCode)
    {
        this.snCode = snCode;
    }

    public String getSnCode()
    {
        return snCode;
    }
    public void setFactoryId(String factoryId)
    {
        this.factoryId = factoryId;
    }

    public String getFactoryId()
    {
        return factoryId;
    }
    public void setDepth(String depth)
    {
        this.depth = depth;
    }

    public String getDepth()
    {
        return depth;
    }
    public void setInstallPosition(String installPosition)
    {
        this.installPosition = installPosition;
    }

    public String getInstallPosition()
    {
        return installPosition;
    }
    public void setInstallDate(String installDate)
    {
        this.installDate = installDate;
    }

    public String getInstallDate()
    {
        return installDate;
    }
    public void setDrillFlag(String drillFlag)
    {
        this.drillFlag = drillFlag;
    }

    public String getDrillFlag()
    {
        return drillFlag;
    }
    public void setIotNum(String iotNum)
    {
        this.iotNum = iotNum;
    }

    public String getIotNum()
    {
        return iotNum;
    }
    public void setMonitorObject(String monitorObject)
    {
        this.monitorObject = monitorObject;
    }

    public String getMonitorObject()
    {
        return monitorObject;
    }
    public void setMonitorObjectType(String monitorObjectType)
    {
        this.monitorObjectType = monitorObjectType;
    }

    public String getMonitorObjectType()
    {
        return monitorObjectType;
    }
    public void setParamUnit(String paramUnit)
    {
        this.paramUnit = paramUnit;
    }

    public String getParamUnit()
    {
        return paramUnit;
    }
    public void setBatteryVoltage(String batteryVoltage)
    {
        this.batteryVoltage = batteryVoltage;
    }

    public String getBatteryVoltage()
    {
        return batteryVoltage;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setValid(String valid)
    {
        this.valid = valid;
    }

    public String getValid()
    {
        return valid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceId", getDeviceId())
                .append("sensorId", getSensorId())
                .append("name", getName())
                .append("contentId", getContentId())
                .append("stationId", getStationId())
                .append("stationName", getStationName())
                .append("collectRate", getCollectRate())
                .append("contactType", getContactType())
                .append("contentName", getContentName())
                .append("contentType", getContentType())
                .append("snCode", getSnCode())
                .append("factoryId", getFactoryId())
                .append("depth", getDepth())
                .append("installPosition", getInstallPosition())
                .append("installDate", getInstallDate())
                .append("drillFlag", getDrillFlag())
                .append("iotNum", getIotNum())
                .append("monitorObject", getMonitorObject())
                .append("monitorObjectType", getMonitorObjectType())
                .append("paramUnit", getParamUnit())
                .append("batteryVoltage", getBatteryVoltage())
                .append("parentId", getParentId())
                .append("type", getType())
                .append("status", getStatus())
                .append("valid", getValid())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
